<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:template match="*|/">
    <xsl:apply-templates/>
  </xsl:template>

  <xsl:template match="text()|@*">
    <xsl:value-of select="."/>
  </xsl:template>

  <xsl:template match='nbsp' name='nbsp'>
    <xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
  </xsl:template>

  <xsl:template name="rangeRecursive">
    <xsl:param name="index" select="1"/>
    <xsl:param name="selected" select="1"/>
    <xsl:param name="limit" select="31"/>
    <xsl:choose>
      <xsl:when test='$index = $selected'>
        <option value="{$index}" selected="true">
          <xsl:value-of select="$index"/>
        </option>
      </xsl:when>
      <xsl:otherwise>
        <option value="{$index}">
          <xsl:value-of select="$index"/>
        </option>
      </xsl:otherwise>
    </xsl:choose>
    <xsl:if test="$index &lt; $limit">
      <xsl:call-template name="rangeRecursive">
        <xsl:with-param name="index" select="$index + 1"/>
        <xsl:with-param name="selected" select="$selected"/>
        <xsl:with-param name="limit" select="$limit"/>
      </xsl:call-template>
    </xsl:if>
  </xsl:template>

  <xsl:template match="Registration/Step1">

    <script type="text/javascript">

      var onRegistrationSubmit = function(e) {
      var ret = validateForm();
      if( ret == false ) {
      YAHOO.util.Event.preventDefault(e);
      }
      }

      YAHOO.util.Event.addListener("signup_submit", "click", onRegistrationSubmit);

      function onPushButtonsMarkupReady() {
//      if( $('country').value != "none" ) $('country').selectedIndex=0;
      }

      YAHOO.util.Event.onContentReady("formRegistration", onPushButtonsMarkupReady);

      //      initLoadingContainer();

    </script>

    <script>
      function validateForm() {

      document.returnValue = false;
      var gg = document.getElementById("ggBirth").value;
      var mm = document.getElementById("mmBirth").value;
      var aa = document.getElementById("aaaaBirth").value;
      if (isDate(	gg, mm, aa)){
      document.returnValue = true;
      }else{
      alert("Inserisci una data di nascita valida, dai!");
      return false;
      }

      document.returnValue = false;
      var statura = document.getElementById("D8").value;


      if (!isInteger(statura )){
      alert("Inserisci un'età valida, dai!");
      return false;
      }else{
      document.returnValue = true;
      }

      return document.returnValue;
      }
    </script>


    <form name="formRegistration" id="formRegistration" method="post" action="userProfileChange.aspx?step=2">
      <input type="hidden" name="D8" id="D8" value="18"/>
      <input type="hidden" name="D29" id="D29" value="107"/>
      <input type="hidden" name="D35" id="D35" value="119"/>
      <input type="hidden" name="D39" id="D39" value="empty"/>
      <center>
        <div class="round_me" style="background:#FEEECC; padding:20px; margin:10px;">
          <table class="body" border="0">
            <tr>
              <td colspan='2' align='right' style='padding-top:0px;padding-bottom:20px;'>
                <p class="submit">
                  <input type="submit" id="signup_submit" name="submit" value="Salva e prosegui con Informazioni Personali"></input>
                </p>
              </td>

            </tr>

            <xsl:for-each select='Question'>
          <xsl:choose>

            <xsl:when test='@id="5"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>

                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="6"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="7"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>                  
                  <select name="ggBirth" id="ggBirth">
                    <xsl:call-template name="rangeRecursive">
                      <xsl:with-param name="index" select="1"/>
                      <xsl:with-param name="selected" select="/Registration/user/@daybirth"/>
                      <xsl:with-param name="limit" select="31"/>
                    </xsl:call-template>
                  </select>
                  &#160;/&#160;
                  <select name="mmBirth" id="mmBirth">
                    <xsl:call-template name="rangeRecursive">
                      <xsl:with-param name="index" select="1"/>
                      <xsl:with-param name="selected" select="/Registration/user/@monthbirth"/>
                      <xsl:with-param name="limit" select="12"/>
                    </xsl:call-template>
                  </select>
                  &#160;/&#160;
                  <select name="aaaaBirth" id="aaaaBirth">
                    <xsl:call-template name="rangeRecursive">
                      <xsl:with-param name="index" select="1920"/>
                      <xsl:with-param name="selected" select="/Registration/user/@yearbirth"/>
                      <xsl:with-param name="limit" select="1997"/>
                    </xsl:call-template>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="8"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <input type="text" name="D{@id}" size="4" maxlength="4" value="{@answid}"/>

                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="9"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select name="country" id="country" onchange="javascript:updateRegions();">
                    <xsl:for-each select="/Registration/countries/country">
                      <xsl:choose>
                        <xsl:when test='@iso2=/Registration/user/@countrycode'>
                          <option value="{@iso2}" selected="true">
                            <xsl:value-of select="@name"/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@iso2}">
                            <xsl:value-of select="@name"/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>


              <tr>
                <td>

                </td>
                <td>
                  
                  <select name="region" id="region" onchange="javascript:updateCities();">
                    <xsl:for-each select="/Registration/regions/region">
                      <xsl:choose>
                        <xsl:when test='@fips_region=/Registration/user/@regioncode'>
                          <option value="{@fips_region}" selected="true">
                            <xsl:value-of select="@name"/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@fips_region}">
                            <xsl:value-of select="@name"/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>



              <tr>
                <td>

                </td>
                <td>

                  <select name="citycode" id="citycode">
                    <xsl:for-each select="/Registration/cities/city">
                      <xsl:choose>
                        <xsl:when test='@id=/Registration/user/@citycode'>
                          <option value="{@id}" selected="true">
                            <xsl:value-of select="@accentcity"/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@id}">
                            <xsl:value-of select="@accentcity"/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                  <span id="cityloading" style="display:none">loading...</span>
                </td>
              </tr>

            </xsl:when>


            <xsl:when test='@id="10"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="11"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="sex">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="12"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="13"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="14"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="15"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="16"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="17"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="18"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="19"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="20"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="21"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="22"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="23"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="24"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="25"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="26"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="27"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <img src="{@comment}" name="I{@id}"/>

                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="28"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="29"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="30"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="31"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="32"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="33"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="34"'>
              <tr>
                <td>
                  <xsl:value-of select="@description"/>
                </td>
                <td>
                  <select size="1" name="D{@id}">
                    <xsl:for-each select="Answer">
                      <xsl:choose>
                        <xsl:when test='@ID=../@answid'>
                          <option value="{@ID}" selected="true">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:when>
                        <xsl:otherwise>
                          <option value="{@ID}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:for-each>
                  </select>
                </td>
              </tr>
            </xsl:when>
            <xsl:when test='@id="43"'>
              <tr>
                <td colspan='2' align='right' style='padding-top:20px;padding-bottom:10px;'>
                  <p class="submit">
                    <input type="submit" id="signup_submit" name="submit" value="Salva e prosegui con Informazioni Personali"></input>
                  </p>
                </td>

              </tr>
            </xsl:when>

          </xsl:choose>
        </xsl:for-each>
        

      </table>
      <input type="hidden" name="email" id="email" value="{/Registration/user/@email}" />
        </div>
    </center>
    </form>

    <script>

    </script>
  </xsl:template>

</xsl:stylesheet>